package com.Service.ServiceImpl;

import com.Dao.BookDao;
import com.Dao.DaoImpl.BookDaoImpl;
import com.Dao.DaoImpl.UserDaoImpl_1;
import com.Dao.UserDao;
import com.Service.BookService;

public class BookServiceImpl implements BookService {
    private BookDao bookDao/* = new BookDaoImpl()*/;
    private UserDao userDao;
    @Override
    public void save() {
        System.out.println(" BookService的实现类");
    }

    public BookServiceImpl(BookDao bookDao, UserDao userDao) {
        this.bookDao = bookDao;
        this.userDao = userDao;
    }

    public void setBookDao(BookDaoImpl bookDao) {
        this.bookDao = bookDao;
    }

    public void setUserDao(UserDaoImpl_1 userDao) {
        this.userDao = userDao;
    }
}
